home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Graphics / Plotting / GnuTerm_1.1a / Source / Makefile < prev    next >
Makefile  |  1995-08-28  |  12KB  |  301 lines

  1. # Generated automatically from Makefile.in by configure.
  2. ############################################################
  3. #
  4. # GNUPLOT Makefile (Unix X11 support)
  5. # Adapted from makefile.unx by djm@gnu.ai.mit.edu
  6. ############################################################
  7.  
  8. .NOEXPORT:
  9. SHELL = /bin/sh
  10.  
  11. srcdir = .
  12.  
  13. prefix = /usr/local
  14. exec_prefix = ${prefix}
  15. bindir = $(exec_prefix)/bin
  16. datadir = $(prefix)/lib
  17. mandir = $(prefix)/man/man1
  18.  
  19. INSTALL = /usr/bin/install -c
  20. INSTALL_PROGRAM = ${INSTALL}
  21. INSTALL_DATA = ${INSTALL} -m 644
  22.  
  23. CC     = cc
  24. DEFS   =  -DREADLINE=1 -DNOCWDRC=1 -DANSI_C=1 -DNEXT=1 -DNeXT=1 -DOLD_SELECT=1 -DHAVE_LIBC_H=1 -DSGTTY=1 -DSTDC_HEADERS=1 -DRETSIGTYPE=void -DGAMMA=lgamma -DSTRNCASECMP=1 -DXPG3_LOCALE=1 -DUNIX=1 -DHAVE_STRERROR=1 -Dunix=1 -DAUTOCONF=1  
  25. CFLAGS = -g -O -arch m68k -arch i386 -arch sparc -arch hppa
  26. LDFLAGS =  -s -arch m68k -arch i386 -arch sparc -arch hpp
  27.  
  28. # Additional devices you can add.
  29. # -DAPOLLO      Apollo Graphics Primitive Resource (window resize after replot)
  30. # -DGPR         Apollo Graphics Primitive Resource (fixed-size window)
  31. # -DCGI         SCO CGI
  32. # -DIRIS4D      IRIS4D series computer
  33. # -DSUN         Sun Microsystems Workstation
  34. # -DLINUX    Linux PC with SuperVGA library
  35. # -DUNIXPC      unixpc (ATT 3b1 or ATT 7300)
  36. # -DUNIXPLOT    unixplot
  37. # -DGNUGRAPH    use GNU graphics version of UNIX plot library
  38. #               This can only be used in combination with -DUNIXPLOT
  39. TERMFLAGS = -ObjC -DOLD_TERMINALS=1
  40.  
  41. #  -lplot if you have -DUNIXPLOT in TERMFLAGS
  42. #  -lsuntool -lsunwindow -lpixrect  if you have -DSUN in TERMFLAGS
  43. #  -lgl_s if -DIRIS4D in TERMFLAGS
  44. #  -lccgi if -DCGI in TERMFLAGS
  45. #  -lvga if -DLINUX in TERMFLAGS
  46. TERMLIBS = 
  47.  
  48. LIBS = $(TERMLIBS)   -lsys_s -lNeXT_s -lm
  49.  
  50. # Where to send email about bugs and comments (locally)
  51. EMAIL=bug-gnuplot@dartmouth.edu
  52.  
  53. # Lasergnu is a handy shell script for creating a plot from the
  54. # command line and sending it directly to the printer. It currently
  55. # supports PostScript and imagen printers, and probably would need
  56. # tailoring to your site.
  57. # Use lasergnu_install to install lasergnu.
  58. # Use lasergnu_noinstall to not install lasergnu (default).
  59. LASERGNU = lasergnu_noinstall
  60.  
  61. ############################################################
  62. # -DREADLINE:
  63. #   If READLINE is defined, then command-line editing is supported.
  64. #   Otherwise, your normal terminal editing is all you get.
  65. #   Some machines will not support this, and they will turn this
  66. #   option off (for example, apollos running SR10.2 or SR10.3 and
  67. #   loaded with BSD4.3 instead of SYS5). Note: problems with
  68. #   gnuplot prompts have been noted when this feature is selected
  69. #   on IBM RS/6000 AIX, and compile errors are encountered on
  70. #   Sequent Dynix 3 and Convex OS 9.0.
  71. # -DNOCWDRC:
  72. #   If NOCWDRC is defined, then any .gnuplot in the current directory
  73. #   is not read on startup. This is a security consideration
  74. #   especially for root users ( we recommend you define -DNOCWDRC ).
  75.  
  76. # -DOLD_SELECT if you have an old 4.2 BSD OS (e.g. Sun OS 3.5) and
  77. #   encounter compile error for missing FD_* macros for select
  78. # -DBSD_TYPES if your system defines FD_* macros for select in
  79. #   <sys/bsdtypes.h>
  80. # -ISC22 to circumvent missing plots past the first on ISC 2.2
  81.  
  82. #  -DMEMSET if you need to use memset() instead of bzero()
  83. #  -DMEMCPY if your bcopy() is called memcpy()
  84. #  -DNOCOPY if you don't have a memcpy() by any name
  85. #  -DGAMMA=foo if your gamma function is called foo(). Apollos and
  86. #    Linux have lgamma(3m). The default is -DGAMMA=gamma.
  87. #  -DGETCWD if your unix uses getcwd() instead of getcd()
  88. #    this is needed by HP-UX and Cray Unicos systems.
  89. #  -DULTRIX_KLUDGE if you run X windows on Ultrix and experience the
  90. #    "every other plot" problem.
  91. #  -DCRIPPLED_SELECT if "select errors" are encountered with X. This
  92. #    option is needed on SVR3 platforms with incomplete support for
  93. #    the BSD select() system call
  94. #  -DXPG3_LOCALE if your system uses the 'setlocale' function to
  95. #    support foreign charactersets (currently only ISO8859-1).
  96. #  -Dunix is required to explicitly define "unix" for SCO and IBM
  97. #          RS/6000 running AIX 3.2
  98.  
  99. #
  100. # You probably don't need to change anything below here.
  101. #
  102.  
  103. ####################################################################
  104. # List of object files except version.o
  105. OBJS = bitmap.o command.o contour.o eval.o graphics.o graph3d.o help.o hidden3d.o\
  106.        internal.o misc.o parse.o plot.o plot2d.o plot3d.o readline.o scanner.o \
  107.        set.o show.o specfun.o standard.o term.o util.o util3d.o binary.o \
  108.        interpol.o fit.o matrix.o datafile.o alloc.o epsviewe.o
  109.  
  110. ####################################################################
  111. # List of source files
  112. # Used for making shar files, lint, and some dependencies.
  113. DIRS = term demo docs docs/latextut
  114.  
  115. CSOURCE1 = bf_test.c binary.c command.c set.c show.c util3d.c hidden3d.c
  116. CSOURCE2 = help.c graphics.c graph3d.c internal.c
  117. CSOURCE3 = misc.c eval.c parse.c plot.c plot2d.c plot3d.c readline.c scanner.c standard.c
  118. CSOURCE4 = bitmap.c term.c util.c version.c fit.c matrix.c
  119. CSOURCE5 = term/ai.trm term/amiga.trm term/aed.trm term/atari.trm \
  120.     term/bigfig.trm term/cgi.trm term/corel.trm \
  121.     term/djsvga.trm term/dumb.trm \
  122.     term/dxf.trm term/dxy.trm term/debug.trm \
  123.     term/emxvga.trm term/eepic.trm term/epson.trm term/excl.trm \
  124.     term/fig.trm term/grass.trm term/hp26.trm term/hp2648.trm term/hpgl.trm \
  125.     term/hp500c.trm term/hpljii.trm term/metafont.trm \
  126.     term/apollo.trm term/gpr.trm term/hppj.trm term/compact.c
  127. CSOURCE6 = term/impcodes.h term/imagen.trm term/next.trm term/object.h \
  128.     term/iris4d.trm term/kyo.trm term/latex.trm term/mif.trm \
  129.     term/pbm.trm term/pslatex.trm term/gpic.trm
  130. CSOURCE7 = term/post.trm term/pstricks.trm term/qms.trm term/regis.trm \
  131.     term/rgip.trm term/sun.trm \
  132.     term/t410x.trm term/tek.trm term/texdraw.trm \
  133.     term/tgif.trm term/tpic.trm \
  134.     term/unixpc.trm term/unixplot.trm \
  135.     term/v384.trm term/vws.trm term/x11.trm term/xlib.trm
  136. CSOURCE8 = contour.c specfun.c gplt_x11.c interpol.c
  137. NEXTSRC  = epsviewe.m epsviewe.h
  138. # not C code, but still needed
  139.  
  140. DEMOS = demo/1.dat demo/2.dat demo/3.dat demo/contours.dem \
  141.     demo/controls.dem demo/electron.dem demo/glass.dat demo/param.dem \
  142.     demo/polar.dem demo/simple.dem demo/surface1.dem \
  143.     demo/surface2.dem demo/using.dat demo/using.dem demo/world.cor \
  144.     demo/world.dat demo/world.dem \
  145.     demo/err.dat demo/poldat.dem demo/errorbar.dem \
  146.     demo/all.dem demo/animate.dem demo/bivariat.dem \
  147.     demo/prob.dem demo/stat.inc demo/prob2.dem demo/random.dem \
  148.     demo/discrete.dem demo/hidden.dem demo/airfoil.dem demo/gnuplot.rot\
  149.     demo/binary.dem demo/spline.dem demo/steps.dem demo/steps.dat \
  150.     demo/multimsh.dem demo/whale.dat demo/hemisphr.dat \
  151.     demo/scatter.dem demo/scatter2.dat demo/singulr.dem demo/klein.dat
  152.  
  153. ETC = Copyright 0README README.gnu README.ami makefile.unx makefile.vms \
  154.     linkopt.amg makefile.amg makefile.ami linkopt.vms buildvms.com \
  155.     lasergnu makefile.r makefile.nt makefile.g 0FAQ 0BUGS\
  156.     term/README History gnuplot.el intergra.x11 0INSTALL\
  157.     README.3p2 README.3p3 README.3p4 README.pro README.nex README.x11 \
  158.     README.3d README.mf README.win configure configure.in Makefile.in
  159.  
  160. #BETA files (not standard distribution files)
  161. BETA = BETA
  162. # PC-specific files
  163. PC = corgraph.asm corplot.c header.mac hrcgraph.asm lineproc.mac \
  164.     linkopt.msc makefile.msc makefile.tc makefile.st makefile.djg \
  165.     pcgraph.asm gnuplot.def makefile.286 gnuplot.prj makefile.emx \
  166.     makefile.ztc linkopt.ztc term/fg.trm term/pc.trm
  167. WINDOWS = makefile.win makefile.msw README.win win/wcommon.h \
  168.     win/wgnuplib.c win/wgnuplib.def win/wgnuplib.h win/wgnuplib.rc \
  169.     win/wgnuplot.def win/wgnuplot.hpj win/wgnuplot.mnu win/wgnuplot.rc \
  170.     win/wgraph.c win/winmain.c win/wmenu.c win/wpause.c \
  171.     win/wprinter.c win/wresourc.h win/wtext.c win/wtext.h \
  172.     win/geticon.c docs/doc2rtf.c term/win.trm
  173. OS2 = makefile.os2 os2/makefile os2/dialogs.c os2/dialogs.h os2/gclient.c \
  174.     os2/gnuicon.uue os2/gnupmdrv.c os2/gnupmdrv.def os2/gnupmdrv.h \
  175.     os2/gnupmdrv.itl os2/gnupmdrv.rc os2/print.c docs/doc2ipf.c \
  176.     README.os2 term/pm.trm
  177.  
  178. # Documentation and help files
  179. DOCS1 = docs/makefile.org docs/README docs/checkdoc.c docs/doc2gih.c \
  180.     docs/doc2hlp.c docs/doc2hlp.com docs/doc2ms.c docs/doc2tex.c \
  181.     docs/gnuplot.1 docs/lasergnu.1 docs/toc_entr.sty docs/doc2info.pl \
  182.     docs/titlepag.ms docs/titlepag.tex docs/makefile.ami \
  183.     docs/doc2rtf.c docs/Makefile.in
  184. DOCS2 = docs/gnuplot.doc docs/gpcard.tex
  185. DOCS3 = docs/latextut/makefile.org docs/latextut/eg1.plt \
  186.     docs/latextut/eg2.plt docs/latextut/eg3.dat docs/latextut/eg3.plt \
  187.     docs/latextut/eg4.plt docs/latextut/eg5.plt docs/latextut/eg6.plt \
  188.     docs/latextut/header.tex docs/latextut/tutorial.tex \
  189.     docs/latextut/linepoin.plt docs/latextut/Makefile.in
  190.  
  191. #########################################################################
  192.  
  193. all:  gnuplot  doc demo/binary1
  194.  
  195. gnuplot: $(OBJS) version.o
  196.     $(CC) -o $@ $(OBJS) version.o $(LDFLAGS) $(LIBS)
  197.  
  198. doc:
  199.     ( cd docs; $(MAKE) $(MFLAGS) gnuplot.gih )
  200.  
  201. gnuplot_x11: gplt_x11.o
  202.     $(CC) -o $@ gplt_x11.o $(LDFLAGS) $(LIBS)
  203.  
  204. check: all demo/binary1
  205.  
  206. demo/binary1 demo/binary2 demo/binary3: bf_test
  207.     ( wd=`pwd`; cd $(srcdir)/demo; $$wd/bf_test )
  208.  
  209. bf_test: bf_test.o binary.o alloc.o
  210.     $(CC) -o $@ bf_test.o binary.o alloc.o $(LDFLAGS) $(LIBS)
  211.  
  212. errorfix: $(srcdir)/errorfix.sh
  213.     $(srcdir)/errorfix.sh $(srcdir)
  214.     touch errorfix
  215.  
  216. ################################################################
  217.  
  218. install: all $(LASERGNU)
  219.     $(INSTALL_PROGRAM) gnuplot $(bindir)/gnuplot
  220.     test ! -f gnuplot_x11 || $(INSTALL_PROGRAM) gnuplot_x11 $(bindir)/gnuplot_x11
  221.     -$(INSTALL_DATA) $(srcdir)/docs/gnuplot.1 $(mandir)/gnuplot.1
  222.     ( cd docs; $(MAKE) $(MFLAGS) install datadir=$(datadir) )
  223.     
  224.  
  225. lasergnu_install: lasergnu docs/lasergnu.1
  226.     $(INSTALL_PROGRAM) $(srcdir)/lasergnu $(bindir)/lasergnu
  227.     $(INSTALL_DATA) $(srcdir)/docs/lasergnu.1 $(mandir)/lasergnu.1
  228.  
  229. lasergnu_noinstall:
  230.  
  231. uninstall:
  232.     rm -f $(bindir)/gnuplot $(bindir)/gnuplot_x11
  233.     rm -f $(mandir)/gnuplot.1 $(mandir)/lasergnu.1
  234.     ( cd docs; $(MAKE) $(MFLAGS) uninstall datadir=$(datadir) )
  235.  
  236. ################################################################
  237. # Dependencies
  238.  
  239. .c.o:
  240.     $(CC) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) $<
  241.  
  242. term.o: term.h term.c $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
  243.     $(CC) -c -I$(srcdir) -I$(srcdir)/term $(TERMFLAGS) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(srcdir)/term.c
  244.  
  245. version.o:
  246.     $(CC) -c -DCONTACT=\"$(EMAIL)\" $(CPPFLAGS) $(DEFS) $(CFLAGS) $(srcdir)/version.c
  247.  
  248. $(OBJS): plot.h
  249.  
  250. command.o: command.c fit.h
  251.     $(CC) -c -DHELPFILE=\"$(datadir)/gnuplot.gih\" $(CPPFLAGS) $(DEFS) $(CFLAGS) $(srcdir)/command.c
  252.  
  253. command.o help.o misc.o: help.h
  254.  
  255. command.o graphics.o graph3d.o misc.o plot.o set.o show.o term.o: setshow.h
  256.  
  257. fit.o: fit.c fit.h matrix.h plot.h
  258.  
  259. matrix.o: matrix.c matrix.h fit.h
  260.  
  261. bitmap.o term.o: bitmap.h
  262.  
  263. ################################################################
  264.  
  265. Makefile: Makefile.in config.status
  266.     $(SHELL) config.status
  267. config.status: configure
  268.     $(SHELL) config.status --recheck
  269. configure: configure.in
  270. # enable this rule if you want autoconf to be executed automatically when
  271. # configure.in is changed. This is commented out, since patching might give
  272. # configure.in a newer timestamp than configure and not everybody has autoconf
  273. #    cd $(srcdir); autoconf
  274.  
  275. ################################################################
  276. # Miscellaneous targets
  277.  
  278. SOURCES=plot.h help.h setshow.h bitmap.h term.h $(CSOURCE1) $(CSOURCE2) \
  279.     $(CSOURCE3) $(CSOURCE4) $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)\
  280.     $(CSOURCE8) $(NEXTSRC) $(WINDOWS) $(OS2)
  281.  
  282. DOCS  = $(DOCS1) $(DOCS2) $(DOCS3)
  283.  
  284. clean:
  285.     rm -f gnuplot gnuplot_x11 bf_test *.o core
  286.     rm -f demo/binary? demo/temp.set demo/defaults.ini
  287.     ( cd docs; $(MAKE) $(MFLAGS) clean )
  288.  
  289. mostlyclean: clean
  290.  
  291. distclean: clean
  292.     rm -f Makefile config.status config.cache config.log
  293.     rm -f docs/Makefile docs/latextut/Makefile
  294.  
  295. realclean: distclean
  296.     rm -f TAGS docs/TAGS
  297.  
  298. dist: $(ETC) $(SOURCES) $(PC) $(DEMOS) $(BETA) $(DOCS)
  299.     $(TAR) cvf /tmp/gnuplot.tar $(ETC) $(SOURCES) $(PC)\
  300.          $(DEMOS) $(BETA) $(DOCS)
  301.